<template>
    <div>
        <van-pagination v-model="currentPage" :total-items='total' :items-per-page="3" @change="change"/>

    </div>
</template>

<script>
    export default {
        props:['total'],
        data(){
            return{
                currentPage:1
            }
        },
        methods:{
            change(v){
                this.$emit('currentP',v)
            }
        }
    }
</script>

<style scoped>

</style>